import React from 'react';
import styled from 'styled-components';

// export const RadioButtonComp = () => {
//     return (
//         <StyledWrapper>
//             <div className="card">
//                 <p className="card-title">Product Name</p>
//                 <p className="small-desc">
//                     Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat
//                     veritatis nobis saepe itaque rerum nostrum aliquid obcaecati odio
//                     officia deleniti. Expedita iste et illum, quaerat pariatur consequatur
//                     eum nihil itaque!
//                 </p>
//                 <div className="go-corner">
//                     <div className="go-arrow">→</div>
//                 </div>
//             </div>
//         </StyledWrapper>
//     );
// }
//
// const StyledWrapper = styled.div`
//   .card-title {
//     color: #262626;
//     font-size: 1.5em;
//     line-height: normal;
//     font-weight: 700;
//     margin-bottom: 0.5em;
//   }
//
//   .small-desc {
//     font-size: 1em;
//     font-weight: 400;
//     line-height: 1.5em;
//     color: #452c2c;
//   }
//
//   .small-desc {
//     font-size: 1em;
//   }
//
//   .go-corner {
//     display: flex;
//     align-items: center;
//     justify-content: center;
//     position: absolute;
//     width: 2em;
//     height: 2em;
//     overflow: hidden;
//     top: 0;
//     right: 0;
//     background: linear-gradient(135deg, #6293c8, #384c6c);
//     border-radius: 0 4px 0 32px;
//   }
//
//   .go-arrow {
//     margin-top: -4px;
//     margin-right: -4px;
//     color: white;
//     font-family: courier, sans;
//   }
//
//   .card {
//     display: block;
//     position: relative;
//     max-width: 300px;
//     max-height: 320px;
//     background-color: #f2f8f9;
//     border-radius: 10px;
//     padding: 2em 1.2em;
//     margin: 12px;
//     text-decoration: none;
//     z-index: 0;
//     overflow: hidden;
//     background: linear-gradient(to bottom, #c3e6ec, #a7d1d9);
//     font-family: Arial, Helvetica, sans-serif;
//   }
//
//   .card:before {
//     content: '';
//     position: absolute;
//     z-index: -1;
//     top: -16px;
//     right: -16px;
//     background: linear-gradient(135deg, #364a60, #384c6c);
//     height: 32px;
//     width: 32px;
//     border-radius: 32px;
//     transform: scale(1);
//     transform-origin: 50% 50%;
//     transition: transform 0.35s ease-out;
//   }
//
//   .card:hover:before {
//     transform: scale(28);
//   }
//
//   .card:hover .small-desc {
//     transition: all 0.5s ease-out;
//     color: rgba(255, 255, 255, 0.8);
//   }
//
//   .card:hover .card-title {
//     transition: all 0.5s ease-out;
//     color: #ffffff;
//   }`;
// import React from 'react';
// import styled from 'styled-components';
//
export const RadioButtonComp = () => {
    return (
        <StyledWrapper>
            <div className="outer">
                <div className="dot" />
                <div className="card">
                    <div className="ray" />
                    <div className="text">750k</div>
                    <div>Views</div>
                    <div className="line topl" />
                    <div className="line leftl" />
                    <div className="line bottoml" />
                    <div className="line rightl" />
                </div>
            </div>
        </StyledWrapper>
    );
}

const StyledWrapper = styled.div`
  .outer {
    width: 300px;
    height: 250px;
    border-radius: 10px;
    padding: 1px;
    background: radial-gradient(circle 230px at 0% 0%, #ffffff, #0c0d0d);
    position: relative;
  }

  .dot {
    width: 5px;
    aspect-ratio: 1;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 0 10px #ffffff;
    border-radius: 100px;
    z-index: 2;
    right: 10%;
    top: 10%;
    animation: moveDot 6s linear infinite;
  }

  @keyframes moveDot {
    0%,
    100% {
      top: 10%;
      right: 10%;
    }
    25% {
      top: 10%;
      right: calc(100% - 35px);
    }
    50% {
      top: calc(100% - 30px);
      right: calc(100% - 35px);
    }
    75% {
      top: calc(100% - 30px);
      right: 10%;
    }
  }

  .card {
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    border: solid 1px #202222;
    background-size: 20px 20px;
    background: radial-gradient(circle 280px at 0% 0%, #444444, #0c0d0d);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    color: #fff;
  }
  .ray {
    width: 220px;
    height: 45px;
    border-radius: 100px;
    position: absolute;
    background-color: #c7c7c7;
    opacity: 0.4;
    box-shadow: 0 0 50px #fff;
    filter: blur(10px);
    transform-origin: 10%;
    top: 0%;
    left: 0;
    transform: rotate(40deg);
  }

  .card .text {
    font-weight: bolder;
    font-size: 4rem;
    background: linear-gradient(45deg, #000000 4%, #fff, #000);
    background-clip: text;
    color: transparent;
  }

  .line {
    width: 100%;
    height: 1px;
    position: absolute;
    background-color: #2c2c2c;
  }
  .topl {
    top: 10%;
    background: linear-gradient(90deg, #888888 30%, #1d1f1f 70%);
  }
  .bottoml {
    bottom: 10%;
  }
  .leftl {
    left: 10%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, #747474 30%, #222424 70%);
  }
  .rightl {
    right: 10%;
    width: 1px;
    height: 100%;
  }`;
